package entity

type ReservationOrder struct {
	ID              uint   `gorm:"column:id;primaryKey"`
	OrderId         uint   `gorm:"column:order_id;comment:订单ID"`
	PickupAddrId    uint   `gorm:"column:pickup_address_id;comment:取件地址"`
	DeliveryAddrId  uint   `gorm:"column:delivery_address_id;comment:送件地址"`
	IsActivated     bool   `gorm:"column:is_activated;comment:接收到通知 DYJ 后为 true，为 1 订单不可退"`
	AppointmentTime string `gorm:"column:appointment_time;comment:预约时间"`
	CreatedAt       string `gorm:"column:created_at;comment:创建时间"`
}

func (ReservationOrder) TableName() string {
	return "l_reservation_order"
}
